package com.ws.delegate;

public class ConcreteMediator extends Mediator{

	
	private ConcreteColleague1 concreteColleague1;
    private ConcreteColleague2 concreteColleague2;
    
    
	@Override
	public void colleagueChanged(Colleague c) {
		concreteColleague1.action();
		concreteColleague2.action();
	}
	
	public void creteConcreteMediator(){
        concreteColleague1 = new 8(this);
        concreteColleague2 = new ConcreteColleague2(this);
    }
    public ConcreteColleague1 getConcreteColleague1(){
        return concreteColleague1;
    }
    public ConcreteColleague2 getConcreteColleague2(){
        return concreteColleague2;
    }

}
